package com.zzedu.dto;

import com.fasterxml.jackson.annotation.*;
import java.util.*;
import java.time.*;
import java.math.*;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import java.time.LocalDateTime;

/**
 * (教育-课程)课程题目分类对象 zz_content_type
 * 
 * @author Mr.Wang
 * @date 2025-02-24
 */
public class ZzContentTypeDTO implements Serializable
{
    private static final long serialVersionUID = 1L;
    /** id */

    private Long id;
    /** 类型名称 */
    private String name;
    /** 状态 0-暂停 1正常 */
    private Integer state;
    /** app背景图 */
    private Long appBackgroundImage;
    /** 大屏背景图 */
    private Long pcBackgroundImage;
    /** 顺序（升序） */

    private Integer sortNo;
    /** 添加时间 */
    private LocalDateTime gmtCreate;
    /** 更新时间 */
    private LocalDateTime gmtModify;
    /** 逻辑删除(0：未删除 1：id) */
    private Integer deleted;
    private Map<String, Object> params;
    /**
     * 当前记录起始索引
     */
    private Long pageNum = 1l;

    /**
     * 每页显示记录数
     */
    private Long pageSize = 20l;

    /**
     * 排序列
     */
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    private String isAsc = "asc";

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }
    public void setAppBackgroundImage(Long appBackgroundImage) 
    {
        this.appBackgroundImage = appBackgroundImage;
    }

    public Long getAppBackgroundImage() 
    {
        return appBackgroundImage;
    }
    public void setPcBackgroundImage(Long pcBackgroundImage) 
    {
        this.pcBackgroundImage = pcBackgroundImage;
    }

    public Long getPcBackgroundImage() 
    {
        return pcBackgroundImage;
    }
    public void setSortNo(Integer sortNo) 
    {
        this.sortNo = sortNo;
    }

    public Integer getSortNo() 
    {
        return sortNo;
    }
    public void setGmtCreate(LocalDateTime gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModify(LocalDateTime gmtModify) 
    {
        this.gmtModify = gmtModify;
    }

    public LocalDateTime getGmtModify() 
    {
        return gmtModify;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }


    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getIsAsc() {
        return isAsc;
    }

    public void setIsAsc(String isAsc) {
        this.isAsc = isAsc;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public IPage getPageDTO() {
        return PageDTO.of(getPageNum(), getPageSize());
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
